public interface Heap<T> {
    void add(T element) throws Exception;

    T remove();

    T get();

    void clear();

    int size();

    boolean isEmpty();

}
